#ifndef UNIQUEDL_H
#define UNIQUEDL_H

#include <QThread>
#include <QFile>
#include <QHttp>
#include <QMessageBox>
#include <QEventLoop>

class UniqueDl : public QThread
{
    Q_OBJECT
public:
    explicit UniqueDl(QObject *parent, QString filePath, QFile *file);
    void run();
    
signals:
    void updateProgress(int, int);
    void done();
public slots:
    void chargementTermine(bool erreur);
    void downloadProgress(int un,int deux);
    void stateChange(int);

private:
    QString filePath;
    QFile   *file;
    QHttp   *http;
    
};

#endif // UNIQUEDL_H
